home *** CD-ROM | disk | FTP | other *** search
- REPLACE
- Replaces files on a disk or adds files to a disk
- See also <RENAME> <COPY> <XCOPY>
-
- REPLACE is very similar to <COPY>, but several additional options are
- available with REPLACE. It is used to update sets of files in a
- target directory from those in a source directory.
-
- COMMAND TYPE: External VERSION: 3.2 and up
-
- USE: REPLACE [d:][path]sourcefile [d:][targetpath][/A][/P][/R][/S][/W]
-
- d: path sourcefile specifies the filenames on the source disk that will
- replace the files on the destination disk.
- d: targetpath specifies the destination drive and directory of the files
- that are to be replaced.
- /A causes REPLACE to add only the files that do not already exist on
- the destination disk. /A cannot be used with /S or /U
- /P causes REPLACE to prompt you whether or not you want to replace each
- file.
- /R causes REPLACE to replace the read only files as well as unprotected files
- /S causes REPLACE to search all subdirectories on the destination path
- for matching files. Matching files found in any subdirectory will
- be REPLACEd. /S and /A can not be used together. subdirectories in the
- source path are never searched.
- /W causes REPLACE to wait for you to insert a disk before searching for
- source files.
-
- EXAMPLE: REPLACE A:TEST.BAS C:\ /S
- REPLACE will replace any copy of the file TEST.DAT in any and all
- directories on drive C: with the copy on drive A:
-